import { ImagePreview, Toast } from "vant";
import useConsultStore from "@/pinia/modules/consultStore/consultStore.ts";

const consultStore=useConsultStore()

export  const useLookPre = async (id: string) => {
   try {
      const url: string = await consultStore.fetchPrescriptionPic(id);
      ImagePreview([url]);
   } catch (error: any) {
      Toast.fail(error.message);
   }
};
